<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProfileTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//创建profile表
		Schema::create('profile', function($table)
		{
			$table->increments('user_id');
			$table->string('username',100);
			$table->string('fullname',100);
			$table->string('profile_picture',255);
			$table->string('bio',255)->nullable();
			$table->string('website',100)->nullable();
			$table->string('gender',20)->nullable();
			$table->date('birthday')->nullable();
			$table->string('city',100)->nullable();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//删除profile表
		Schema::dropIfExists('profile');
	}

}
